﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000681 RID: 1665
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetChatFriendHistoryScRsp : IMessage<GetChatFriendHistoryScRsp>, IMessage, IEquatable<GetChatFriendHistoryScRsp>, IDeepCloneable<GetChatFriendHistoryScRsp>, IBufferMessage
	{
		// Token: 0x17001586 RID: 5510
		// (get) Token: 0x06004B2C RID: 19244 RVA: 0x000CE783 File Offset: 0x000CC983
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetChatFriendHistoryScRsp> Parser
		{
			get
			{
				return GetChatFriendHistoryScRsp._parser;
			}
		}

		// Token: 0x17001587 RID: 5511
		// (get) Token: 0x06004B2D RID: 19245 RVA: 0x000CE78A File Offset: 0x000CC98A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetChatFriendHistoryScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001588 RID: 5512
		// (get) Token: 0x06004B2E RID: 19246 RVA: 0x000CE79C File Offset: 0x000CC99C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetChatFriendHistoryScRsp.Descriptor;
			}
		}

		// Token: 0x06004B2F RID: 19247 RVA: 0x000CE7A3 File Offset: 0x000CC9A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChatFriendHistoryScRsp()
		{
		}

		// Token: 0x06004B30 RID: 19248 RVA: 0x000CE7B6 File Offset: 0x000CC9B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChatFriendHistoryScRsp(GetChatFriendHistoryScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.friendHistoryInfo_ = other.friendHistoryInfo_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004B31 RID: 19249 RVA: 0x000CE7EC File Offset: 0x000CC9EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChatFriendHistoryScRsp Clone()
		{
			return new GetChatFriendHistoryScRsp(this);
		}

		// Token: 0x17001589 RID: 5513
		// (get) Token: 0x06004B32 RID: 19250 RVA: 0x000CE7F4 File Offset: 0x000CC9F4
		// (set) Token: 0x06004B33 RID: 19251 RVA: 0x000CE7FC File Offset: 0x000CC9FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700158A RID: 5514
		// (get) Token: 0x06004B34 RID: 19252 RVA: 0x000CE805 File Offset: 0x000CCA05
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<FriendHistoryInfo> FriendHistoryInfo
		{
			get
			{
				return this.friendHistoryInfo_;
			}
		}

		// Token: 0x06004B35 RID: 19253 RVA: 0x000CE80D File Offset: 0x000CCA0D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetChatFriendHistoryScRsp);
		}

		// Token: 0x06004B36 RID: 19254 RVA: 0x000CE81C File Offset: 0x000CCA1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetChatFriendHistoryScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.friendHistoryInfo_.Equals(other.friendHistoryInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004B37 RID: 19255 RVA: 0x000CE86C File Offset: 0x000CCA6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.friendHistoryInfo_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004B38 RID: 19256 RVA: 0x000CE8B9 File Offset: 0x000CCAB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004B39 RID: 19257 RVA: 0x000CE8C1 File Offset: 0x000CCAC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004B3A RID: 19258 RVA: 0x000CE8CC File Offset: 0x000CCACC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.friendHistoryInfo_.WriteTo(ref output, GetChatFriendHistoryScRsp._repeated_friendHistoryInfo_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004B3B RID: 19259 RVA: 0x000CE91C File Offset: 0x000CCB1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.friendHistoryInfo_.CalculateSize(GetChatFriendHistoryScRsp._repeated_friendHistoryInfo_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004B3C RID: 19260 RVA: 0x000CE970 File Offset: 0x000CCB70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetChatFriendHistoryScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.friendHistoryInfo_.Add(other.friendHistoryInfo_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004B3D RID: 19261 RVA: 0x000CE9BD File Offset: 0x000CCBBD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004B3E RID: 19262 RVA: 0x000CE9C8 File Offset: 0x000CCBC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.friendHistoryInfo_.AddEntriesFrom(ref input, GetChatFriendHistoryScRsp._repeated_friendHistoryInfo_codec);
				}
			}
		}

		// Token: 0x04001DD4 RID: 7636
		private static readonly MessageParser<GetChatFriendHistoryScRsp> _parser = new MessageParser<GetChatFriendHistoryScRsp>(() => new GetChatFriendHistoryScRsp());

		// Token: 0x04001DD5 RID: 7637
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001DD6 RID: 7638
		public const int RetcodeFieldNumber = 8;

		// Token: 0x04001DD7 RID: 7639
		private uint retcode_;

		// Token: 0x04001DD8 RID: 7640
		public const int FriendHistoryInfoFieldNumber = 7;

		// Token: 0x04001DD9 RID: 7641
		private static readonly FieldCodec<FriendHistoryInfo> _repeated_friendHistoryInfo_codec = FieldCodec.ForMessage<FriendHistoryInfo>(58U, EggLink.DanhengServer.Proto.FriendHistoryInfo.Parser);

		// Token: 0x04001DDA RID: 7642
		private readonly RepeatedField<FriendHistoryInfo> friendHistoryInfo_ = new RepeatedField<FriendHistoryInfo>();
	}
}
